import java.io.FileReader;
import java.io.IOException;

/*
 *@Student 张策
 */
public class a {
    public static void main(String[] args) {
        a.io();
    }
    public static void io(){
        char[]buf=new char[8];
        int num;
        FileReader fileReader=null;
        String str="e:\\Text4.txt";
        try {
            fileReader = new FileReader(str);
            while(((num=fileReader.read(buf))!=-1)){
                System.out.println(num);
                System.out.println(new String(buf,0,num));
            }
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            try {
                fileReader.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
